package com.yth.springtest;

import com.yth.springtest.beans.Producer;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author yutianhong
 * @version 1.0
 * @since 2024/01/09 17:12
 */
public class Application {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        Producer producer = context.getBean(Producer.class);
        System.out.println("running the test case with name = " + producer.getCount());
    }
}
